channel_test:channel_test.cc	../mqcommom/msg.pb.cc ../mqcommom/proto.pb.cc
	g++ -o $@ $^ -std=c++11 -lgtest  -lprotobuf -lsqlite3 -I../third/include -g

consumer_test:consumer_test.cc	
	g++ -o $@ $^ -std=c++11 -lgtest  -lprotobuf -lsqlite3 
router :router_test.cc ../mqcommom/msg.pb.cc
	g++ -o $@  $^  -std=c++11 -lgtest  -lprotobuf -lsqlite3 -g
virtualhost_test :virtualhost_test.cc ../mqcommom/msg.pb.cc
	g++ -o $@  $^  -std=c++11 -lgtest  -lprotobuf -lsqlite3 -g
message_test :message_test.cc ../mqcommom/msg.pb.cc
	g++ -o $@  $^  -std=c++11 -lgtest  -lprotobuf -lsqlite3 -g
binding_test:binding_test.cc	
	g++ -o $@ $^ -std=c++11 -lgtest  -lprotobuf -lsqlite3
queue_test:queue_test.cc	
	g++ -o $@ $^ -std=c++11 -lgtest  -lprotobuf -lsqlite3
exchange_test:exchange_test.cc
	g++ -o $@ $^ -std=c++11 -lgtest  -lprotobuf -lsqlite3
file_test:file_test.cc
	g++ -o $@ $^ -std=c++11

.PHONY:clean
clean:
	rm -rf file_test exchange_test queue_test binding_test message_test virtualhost_test router consumer_test channel_test